home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / make-367.lha / make-3.67 / Makefile.in < prev    next >
Makefile  |  1993-05-22  |  9KB  |  263 lines

  1. # NOTE: If you have no `make' program at all to process this makefile, run
  2. # `build.sh' instead.
  3. #
  4. # Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  5. # This file is part of GNU Make.
  6. # GNU Make is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. #
  11. # GNU Make is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU Make; see the file COPYING.  If not, write to
  17. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #
  20. #    Makefile for GNU Make
  21. #
  22.  
  23. # Ultrix 2.2 make doesn't expand the value of VPATH.
  24. VPATH = @srcdir@
  25. srcdir = $(VPATH)
  26.  
  27. CC = @CC@
  28.  
  29. CFLAGS = @CFLAGS@
  30. LDFLAGS = @LDFLAGS@
  31.  
  32. # Define these for your system as follows:
  33. #    -DNO_ARCHIVES        To disable `ar' archive support.
  34. #    -DNO_FLOAT        To avoid using floating-point numbers.
  35. #    -DENUM_BITFIELDS    If the compiler isn't GCC but groks enum foo:2.
  36. #                Some compilers apparently accept this
  37. #                without complaint but produce losing code,
  38. #                so beware.
  39. # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  40. defines = @DEFS@ -DLIBDIR=\"$(libdir)\" -DINCLUDEDIR=\"$(includedir)\"
  41.  
  42. # Which flavor of remote job execution support to use.
  43. # The code is found in `remote-$(REMOTE).c'.
  44. REMOTE = @REMOTE@
  45.  
  46. # If you are using the GNU C library, or have the GNU getopt functions in
  47. # your C library, you can comment these out.
  48. GETOPT = getopt.o getopt1.o
  49. GETOPT_SRC = $(srcdir)/getopt.c $(srcdir)/getopt1.c $(srcdir)/getopt.h
  50.  
  51. # If you are using the GNU C library, or have the GNU glob functions in
  52. # your C library, you can comment this out.  GNU make uses special hooks
  53. # into the glob functions to be more efficient (by using make's directory
  54. # cache for globbing), so you must use the GNU functions even if your
  55. # system's C library has the 1003.2 glob functions already.  Also, the glob
  56. # functions in the AIX and HPUX C libraries are said to be buggy.
  57. GLOB = glob/libglob.a
  58.  
  59. # If your system doesn't have alloca, or the one provided is bad, define this.
  60. ALLOCA = @ALLOCA@
  61. ALLOCA_SRC = $(srcdir)/alloca.c
  62.  
  63. # If your system needs extra libraries loaded in, define them here.
  64. # System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
  65. # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  66. # alloca.c instead on those machines.
  67. LOADLIBES = @LIBS@
  68.  
  69. # Any extra object files your system needs.
  70. extras = @LIBOBJS@
  71.  
  72. # Common prefix for machine-independent installed files.
  73. prefix = /usr/local
  74. # Common prefix for machine-dependent installed files.
  75. exec_prefix = $(prefix)
  76.  
  77. # Name under which to install GNU make.
  78. instname = make
  79. # Directory to install `make' in.
  80. bindir = $(exec_prefix)/bin
  81. # Directory to find libraries in for `-lXXX'.
  82. libdir = $(exec_prefix)/lib
  83. # Directory to search by default for included makefiles.
  84. includedir = $(prefix)/include
  85. # Directory to install the Info files in.
  86. infodir = $(prefix)/info
  87. # Directory to install the man page in.
  88. mandir = $(prefix)/man/man$(manext)
  89. # Number to put on the man page filename.
  90. manext = 1
  91.  
  92. # Whether or not make needs to be installed setgid.
  93. # The value should be either `true' or `false'.
  94. # On many systems, the getloadavg function (used to implement the `-l'
  95. # switch) will not work unless make is installed setgid kmem.
  96. install_setgid = @NEED_SETGID@
  97. # Install make setgid to this group so it can read /dev/kmem.
  98. group = @KMEM_GROUP@
  99.  
  100. # Program to install `make'.
  101. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  102. # Program to install the man page.
  103. INSTALL_DATA = @INSTALL_DATA@
  104. # Generic install program.
  105. INSTALL = @INSTALL@
  106.  
  107. # Program to format Texinfo source into Info files.
  108. MAKEINFO = makeinfo
  109. # Program to format Texinfo source into DVI files.
  110. TEXI2DVI = texi2dvi
  111.  
  112. # Programs to make tags files.
  113. ETAGS = etags -tw
  114. CTAGS = ctags -tw
  115.  
  116. objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o    \
  117.        rule.o implicit.o default.o variable.o expand.o function.o    \
  118.        vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o    \
  119.        $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  120. srcs = $(srcdir)/commands.c $(srcdir)/job.c $(srcdir)/dir.c        \
  121.        $(srcdir)/file.c $(srcdir)/getloadavg.c $(srcdir)/misc.c        \
  122.        $(srcdir)/main.c $(srcdir)/read.c $(srcdir)/remake.c        \
  123.        $(srcdir)/rule.c $(srcdir)/implicit.c $(srcdir)/default.c    \
  124.        $(srcdir)/variable.c $(srcdir)/expand.c $(srcdir)/function.c    \
  125.        $(srcdir)/vpath.c $(srcdir)/version.c                \
  126.        $(srcdir)/remote-$(REMOTE).c                    \
  127.        $(srcdir)/ar.c $(srcdir)/arscan.c                \
  128.        $(srcdir)/signame.c $(srcdir)/signame.h $(GETOPT_SRC)        \
  129.        $(srcdir)/commands.h $(srcdir)/dep.h $(srcdir)/file.h        \
  130.        $(srcdir)/job.h $(srcdir)/make.h $(srcdir)/rule.h        \
  131.        $(srcdir)/variable.h $(ALLOCA_SRC) $(srcdir)/config.h.in
  132.  
  133.  
  134. .SUFFIXES:
  135. .SUFFIXES: .o .c .h .ps .dvi .texinfo
  136.  
  137. .PHONY: all check info dvi
  138. all: make
  139. check: # No tests.
  140. info: make.info
  141. dvi: make.dvi
  142.  
  143. make.info: make.texinfo
  144.     $(MAKEINFO) -I$(srcdir) $(srcdir)/make.texinfo -o make.info
  145.  
  146. make.dvi: make.texinfo
  147.     $(TEXI2DVI) $(srcdir)/make.texinfo
  148.  
  149. make.ps: make.dvi
  150.     dvi2ps make.dvi > make.ps
  151.  
  152. make: $(objs)
  153.     $(CC) $(LDFLAGS) $(objs) $(LOADLIBES) -o make.new
  154.     mv -f make.new make
  155.  
  156. # -I. is needed to find config.h in the build directory.
  157. .c.o:
  158.     $(CC) $(defines) -c -I. -I$(srcdir) -I$(srcdir)/glob \
  159.           $(CFLAGS) $< $(OUTPUT_OPTION)
  160.  
  161. # For some losing Unix makes.
  162. SHELL = /bin/sh
  163. MAKE = make
  164.  
  165. glob/libglob.a: force
  166.     cd glob; $(MAKE) CC='$(CC)' CFLAGS='$(CFLAGS) -I..' \
  167.              CPPFLAGS='$(CPPFLAGS) -DHAVE_CONFIG_H' \
  168.              libglob.a
  169. force:
  170.  
  171. tagsrcs = $(srcs) $(srcdir)/remote-*.c
  172. TAGS: $(tagsrcs)
  173.     $(ETAGS) $(tagsrcs)
  174. tags: $(tagsrcs)
  175.     $(CTAGS) $(tagsrcs)
  176.  
  177. .PHONY: install installdirs
  178. install: installdirs \
  179.      $(bindir)/$(instname) $(infodir)/$(instname).info \
  180.      $(mandir)/$(instname).$(manext)
  181.  
  182. installdirs:
  183.     $(SHELL) ${srcdir}/mkinstalldirs
  184.  
  185. $(bindir)/$(instname): make
  186.     $(INSTALL_PROGRAM) make $@.new
  187. # These are necessary for load-average checking to work on most Unix machines.
  188.     if $(install_setgid); then \
  189.       chgrp $(group) $@.new && chmod g+s $@.new; \
  190.     else true; fi
  191. # Some systems can't deal with renaming onto a running binary.
  192.     -rm -f $@.old
  193.     -mv $@ $@.old
  194.     mv $@.new $@
  195.  
  196. $(infodir)/$(instname).info: make.info
  197.     for file in make.info*; do \
  198.       $(INSTALL_DATA) $$file \
  199.         `echo $@ | sed "s,$(instname).info\$$,$$file,"`; \
  200.     done
  201.  
  202. $(mandir)/$(instname).$(manext): make.man
  203.     $(INSTALL_DATA) $(srcdir)/make.man $@
  204.  
  205. .PHONY: clean realclean distclean mostlyclean
  206. clean: glob-clean
  207.     -rm -f make *.o core
  208. distclean: clean glob-realclean
  209.     -rm -f Makefile config.h config.status build.sh
  210.     -rm -f TAGS tags make.info* make.dvi
  211.     -rm -f make.?? make.??s make.log make.toc make.*aux
  212. realclean: distclean
  213. mostlyclean: clean
  214.  
  215. .PHONY: glob-clean glob-realclean
  216. glob-clean glob-realclean:
  217.     cd glob; $(MAKE) $@
  218.  
  219. Makefile: config.status $(srcdir)/Makefile.in
  220.     $(SHELL) config.status
  221. config.h: stamp-config ;
  222. stamp-config: config.status $(srcdir)/config.h.in
  223.     $(SHELL) config.status
  224.     touch stamp-config
  225.  
  226. configure: configure.in
  227.     autoconf $(ACFLAGS)
  228. config.h.in: configure.in
  229.     autoheader $(ACFLAGS)
  230.  
  231. # This tells versions [3.59,3.63) of GNU make not to export all variables.
  232. .NOEXPORT:
  233.  
  234. # Automatically generated dependencies will be put at the end of the file.
  235.  
  236. # Automatically generated dependencies.
  237. commands.o : commands.c make.h config.h dep.h commands.h file.h variable.h \
  238.   job.h 
  239. job.o : job.c make.h config.h commands.h job.h file.h variable.h 
  240. dir.o : dir.c make.h config.h 
  241. file.o : file.c make.h config.h commands.h dep.h file.h variable.h 
  242. main.o : main.c make.h config.h commands.h dep.h file.h variable.h job.h \
  243.   getopt.h 
  244. read.o : read.c make.h config.h commands.h dep.h file.h variable.h glob/glob.h 
  245. remake.o : remake.c make.h config.h commands.h job.h dep.h file.h 
  246. rule.o : rule.c make.h config.h commands.h dep.h file.h variable.h rule.h 
  247. implicit.o : implicit.c make.h config.h rule.h dep.h file.h 
  248. default.o : default.c make.h config.h rule.h dep.h file.h commands.h variable.h 
  249. variable.o : variable.c make.h config.h commands.h variable.h dep.h file.h 
  250. expand.o : expand.c make.h config.h commands.h file.h variable.h 
  251. function.o : function.c make.h config.h variable.h dep.h commands.h job.h 
  252. vpath.o : vpath.c make.h config.h file.h variable.h 
  253. version.o : version.c 
  254. ar.o : ar.c make.h config.h file.h 
  255. arscan.o : arscan.c make.h config.h 
  256. signame.o : signame.c config.h signame.h 
  257. remote-stub.o : remote-stub.c make.h config.h commands.h 
  258. getopt.o : getopt.c config.h getopt.h 
  259. getopt1.o : getopt1.c config.h getopt.h 
  260. getloadavg.o : getloadavg.c config.h 
  261.